package com.biz.primus.ms.depot.trans;


import com.biz.primus.common.utils.CopyUtils;
import com.biz.primus.model.depot.vo.DepotRespVo;
import com.biz.primus.ms.depot.dao.ro.DepotRo;
import com.google.common.base.Function;

/**
 * DepotRo2DepotRespVo
 *
 * @author JKLiues
 * @date 2017/10/31
 */
public class DepotRo2DepotRespVo implements Function<DepotRo, DepotRespVo> {
    @Override
    public DepotRespVo apply(DepotRo depotRo) {
        DepotRespVo depotResponseVo = new DepotRespVo();
        if (depotRo == null) {
            return depotResponseVo;
        }
        depotResponseVo.setId(String.valueOf(depotRo.getId()));
        CopyUtils.copyProperties(depotRo, depotResponseVo);
        return depotResponseVo;
    }
}
